#pragma once
#include "Coords.h"
#ifdef EXPORT_MYCLASS
#define MYCLASSEXPORT __declspec(dllexport)
#else
#define MYCLASSEXPORT __declspec(dllimport)
#endif
	namespace geo {
class MYCLASSEXPORT  SphericalMercatorTiles
{

public:
	 SphericalMercatorTiles(void);
	~SphericalMercatorTiles(void);


	
	 double latToTileCoord(double lat, int zoom) const;
	 double lonToTileCoord(double lon, int zoom) const;




	 double upperLeftLon(double x, int zoom) const;
	 double upperLeftLat(double y, int zoom) const;



private:
		inline double gradToDegree(double gradIn) const;
		inline double sec(double z ) const;

	
};
}

